package com.qf.java2107.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Passports {

    private Integer id;

    private String nationality;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date expire;

    private Integer passengerId;

    private Passenger passenger;

    public Passenger getPassenger() {
        return passenger;
    }

    public void setPassenger(Passenger passenger) {
        this.passenger = passenger;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality == null ? null : nationality.trim();
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = expire;
    }

    public Integer getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(Integer passengerId) {
        this.passengerId = passengerId;
    }

    @Override
    public String toString() {
        return "Passports{" +
                "id=" + id +
                ", nationality='" + nationality + '\'' +
                ", expire=" + expire +
                ", passengerId=" + passengerId +
                '}';
    }
}